package com.tjbaobao.videoplayol.message.request;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by TJbaobao on 2017/11/23.
 */

public class BaseRequest<Info> {

    protected  List<Info> data = new ArrayList<>();

    private String userCode = "";
    private String passWord = "";
    private String deviceCode = "";
    private String requestCode = "";
    private String parameter = "";

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public String getRequestCode() {
        return requestCode;
    }

    public void setRequestCode(String requestCode) {
        this.requestCode = requestCode;
    }

    public String getParameter() {
        return parameter;
    }

    public void setParameter(String parameter) {
        this.parameter = parameter;
    }

    public List<Info> getData() {
        return data;
    }

    public void addData(Info info)
    {
        this.data.add(info);
    }

    public Info getFirstData()
    {
        if(data!=null)
        {
            if(data.size()>0)
            {
                return data.get(0);
            }
        }
        return null;
    }
}
